<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class Home extends Controller
{
    //后台首页
    public function index()
    {

        return view('admin.home.index');
    }

    //退出
    public function login_out()
    {
        session()->flush();
        $msg = [
            'code' => 1,
            'msg'  => '退出成功',
            'url'  => url('admin')
        ];
        return $msg;
    }
}
